<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//定义变量来保存和
			var sum = 0;
			//定义计数器
			var count = 0;
			for (var i = 1;i <= 100;i++){
				if(i%7 == 0){
					sum = sum + i;
					count++;
					console.log(i);
				}
			}
			console.log("一共有"+count+"个7的倍数");
			console.log("总和是"+sum);
		</script>
	</body>
</html>
